package com.mkz.config.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.mkz.config.feign.factory.ParamServiceFallbackFactory;
import com.mkz.core.common.constant.ServiceNameConstants;

import io.swagger.annotations.ApiOperation;

/**
 * ClassName: ParamService 
 * @Description: 系统参数
 * @author: KuangJianyu
 * @date: 2020年4月18日
 */
@FeignClient(contextId = "paramClient", value = ServiceNameConstants.CONFIG_SERVICE, fallbackFactory = ParamServiceFallbackFactory.class)
public interface ParamClient {
	/**
	 */
	@ApiOperation(value = "普通消息发送", notes = "普通消息")
	@PutMapping("/get")
	public String get(@RequestParam String key);
}
